package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.SysRole;
import com.example.demo.repository.SysRoleRepository;
@Service
public class SysRoleService extends BaseService<SysRole, Integer> {
	@Autowired
	private SysRoleRepository sysRoleDAO;

	public List<SysRole> findByParent(SysRole role) {
		return sysRoleDAO.findByParent(role);
	}

	public List<SysRole> findByCode(String code) {
		return sysRoleDAO.findByCode(code);
	}
	
	
}
